<html>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
    .box:hover {
        box-shadow: 0 8px 8px rgba(10, 16, 20, .24), 0 0 8px rgba(10, 16, 20, .12);
        text-decoration: none;
        border: 0;
        transform: translateY(-5px);
    }
    
    .head {
        margin-top: 2rem;
        height: 3.8rem;
        line-height: 3.8rem;
    }
    
    .text_hidden {
        height: 3.8rem;
        overflow: hidden;
        display: -webkit-box;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center;
    }
    
    .h2_hidden {
        height: 1.8rem;
        line-height: 1.8rem;
        overflow: hidden;
        display: -webkit-box;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center;
    }
    
    .photo_hight {
        position: relative;
        height: 27.5rem;
    }
    
    .photo_hidden {
        width: 100%;
        height: 15.5rem;
    }
    
    .photo_hidden img {
        height: 15.5rem;
        width: 100%;
    }
    
    .photo_hight a {
        color: #000;
    }
    /* .recommend {
        color: red;
        position: absolute;
        background-color: #fff;
        top: 0rem;
        right: 0rem;
    } */
    
    .layui-btn-sm i {
        font-size: 2.4rem !important;
    }
    
    .praise::after {
        content: '50';
    }
    
    .browse::after {
        content: '150';
    }
    /* Custom Styles */
    
    ul.nav-tabs {
        width: 140px;
        margin-top: 20px;
        border-radius: 4px;
        border: 1px solid #ddd;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067);
    }
    
    ul.nav-tabs li {
        margin: 0;
        border-top: 1px solid #ddd;
    }
    
    ul.nav-tabs li:first-child {
        border-top: none;
    }
    
    ul.nav-tabs li a {
        margin: 0;
        padding: 8px 16px;
        border-radius: 0;
    }
    
    ul.nav-tabs li.active a,
    ul.nav-tabs li.active a:hover {
        color: #fff;
        background: #0088cc;
        border: 1px solid #0088cc;
    }
    
    ul.nav-tabs li:first-child a {
        border-radius: 4px 4px 0 0;
    }
    
    ul.nav-tabs li:last-child a {
        border-radius: 0 0 4px 4px;
    }
    
    ul.nav-tabs.affix {
        top: 30px;
        /* Set the top position of pinned element */
    }
    
    .jumbotron {
        background-color: #fff;
    }
</style>
<div class="container">
    <div class="jumbotron">
        <h2>院级相册总览</h2>
    </div>
    <div class="row">
        <div class="col-xs-3" id="myScrollspy">
            <ul class="nav nav-tabs nav-stacked" id="myNav">
<!--                <li class="active"><a href="#section-1">历史文化学院</a></li>-->
<!--                <li><a href="#section-2">计算机与信息工程学院</a></li>-->
<!--                <li><a href="#section-3">文学院</a></li>-->
            </ul>
        </div>
        <div class="col-xs-9">
            <h3 id="section-1">历史文化学院</h3>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <h3 id="section-2">计算机与信息工程学院</h3>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <h3 id="section-3">文学院</h3>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
            <div class=" col-md-3 box col-xs-6 photo_hight">
                <div class="photo_hidden"> <img src="http://sxgl.henu.edu.cn:80//index/showImage.do?type=3&img=%2Fuploadimg%2F%E5%9B%BE%E7%89%87%2F2020%E5%B9%B409%E6%9C%8810%E6%97%A5__474ddabfcd2b49c754e689ee0519a922428a3475%2FF2A1B8CAD5F51BDF42B818771EF4B030ECD185C9.jpg" alt=" "
                        class="img-responsive center-block "></div>
                <a href="#">
                    <h4 class="h2_hidden"> <strong>考察调研</strong> </h4>
                    <p class="text_hidden ">民进中央副主席、秘书长高友东来我校考察调研</p>
                    <!-- &lt;!&ndash; <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> &ndash;&gt; -->
                </a>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise" style="border: none;">
                    <i class="layui-icon">&#xe6c6;</i>
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse" style="border: none;">
                  <i class="fa fa-eye"></i>
                   </button>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    //学院选择
    jq1111.ajax({
        type: "GET",
        crossDomain: true,
        async: false,
        url: BasePath + "api/School/Colleges",
        contentType: "application/json",
        dataType: "json",
        xhrFields: {
            withCredentials: true
        },
        success: function(message) {
            var colleges = message.data;
            console.log(message);
            for (i = 0; i < colleges.length; i++) {
                if (i === 0) {
                    jq1111("#myNav").append('<li class="active"><a href="#section-'+i+'">' + colleges[i].name + '</a></li>')
                } else {
                    jq1111("#myNav").append('<li><a href="#section-'+i+'">' + colleges[i].name + '</a></li>')
                }

                //插入查看更多
                jq1111("#college-body").append('<div class="head">\n' +
                        '                <h3><strong>' + colleges[i].name + '</strong></h3>\n' +
                        '            </div>\n' +
                        '            <div class="container " style="margin-top: 2rem; background-color: #fff; ">\n' +
                        '                <div class="row ">\n' +
                        '                    <div class=" col-md-3 box col-xs-6 photo_hight" id="album-more-id-' + colleges[i].id + '">\n' +
                        '                        <div class="photo_hidden"><img src="images/konwmore.png" alt=" "\n' +
                        '                                                       class="img-responsive center-block "></div>\n' +
                        '                        <a href="#/page/organization.html">\n' +
                        '                            <h4 style="text-align: center;"><strong>了解更多精彩</strong></h4>\n' +
                        '                            <p class="text_hidden "></p>\n' +
                        '                            <!-- <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> -->\n' +
                        '                        </a>\n' +
                        '                    </div>\n' +
                        '                </div>\n' +
                        '            </div>')
                    //获取相册
                jq1111.ajax({
                    type: "GET",
                    crossDomain: true,
                    async: false,
                    url: BasePath + "api/PersonalAlbum/Query?page=1&limit=3&collegeId=" + colleges[i].id,
                    contentType: "application/json",
                    dataType: "json",
                    xhrFields: {
                        withCredentials: true
                    },
                    success: function(message) {
                        console.log(message);
                        console.log(message.data[0], colleges[0].id)
                        for (j = 0; j < message.data.length; j++) {
                            jq1111("#album-more-id-" + colleges[i].id).before('<div class=" col-md-3 box col-xs-6 photo_hight">\n' +
                                '                        <div class="photo_hidden"><img\n' +
                                '                                src="' + BasePath + 'api/resource/' + message.data[j].seal + '"\n' +
                                '                                alt=" " class="img-responsive center-block"></div>\n' +
                                '                        <a href="' + 'page/new-show.html?albumId=' + message.data[j].id + '">\n' +
                                '                            <h4 style="text-align: center;"><strong>' + message.data[j].title + '</strong></h4>\n' +
                                '                            <p class="text_hidden">' + message.data[j].description + '</p>\n' +
                                '                            <!-- <span class="layui-badge-rim recommend layui-bg-blue">Hot</span> -->\n' +
                                '                        </a>\n' +
                                '                        <div class="layui-btn-group ">\n' +
                                '                            <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary praise"\n' +
                                '                                    style="border: none;">\n' +
                                '                                <i class="layui-icon">&#xe6c6;</i>\n' +
                                '                            </button>\n' +
                                '                            <button type="button" class="layui-btn layui-btn-sm  layui-btn-primary browse"\n' +
                                '                                    style="border: none;">\n' +
                                '                                <i class="fa fa-eye"></i>\n' +
                                '                            </button>\n' +
                                '                        </div>\n' +
                                '                    </div>')
                        }


                    },
                    error: function(message) {
                        console.log(message.responseJSON);
                    },
                });


            }
        },
        error: function(message) {
            console.log(message.responseJSON);
            layer.msg('失败:' + message.responseJSON.message);
        },
    });
</script>

</html>